#ifndef __LM_SHARE_MEMORY_H__
#define __LM_SHARE_MEMORY_H__

#include "lm_base.h"
#include "lmCommon.h"

class LmShareMemory
{
	public:
		LmShareMemory(int key, int size=0);
		~LmShareMemory();
		
		char* GetMapMemory();

	private:
		int CreateMapMemory(int Key, int size);
		int DestroyMapMemory();

	private:
		int   m_key;
		int   m_shmid;
		char *m_mapAddr;
};


#endif

